<? if(($cfg_params["barre_gauche_active_portail"]&&($GLOBALS["VUE"]["module"]=='portail')) || ($cfg_params["barre_gauche_active_site"]&&($GLOBALS["VUE"]["module"]!='portail'))){ ?>
<div class='barres_laterales_gauche'>
	<? foreach($cfg_params["barre_gauche_contenu"] as $id){
		if($id!=""){
			$var=$sql->request_single("select * from ".CFG_MYSQL_PREFIX."barres_laterales_contenu where id=".$id);
			if($var!==false){
				echo "<div class='barres_laterales_gauche_content'><div class='barres_laterales_gauche_titre'>".$var->nom."</div>";
				switch($var->type){
					case 1:
						load_module($var->module);
						break;
					case 2:
						echo $var->texte;
						break;
					case 3:
						eval($var->texte);
						break;
				}
				echo "</div>";
			}
		}
	}
	?>
</div>
<? }

if(($cfg_params["barre_droite_active_portail"]&&($GLOBALS["VUE"]["module"]=='portail')) || ($cfg_params["barre_droite_active_site"]&&($GLOBALS["VUE"]["module"]!='portail'))){ ?>
<div class='barres_laterales_droite'>
	<? foreach($cfg_params["barre_droite_contenu"] as $id){
		if($id!=""){
			$var=$sql->request_single("select * from ".CFG_MYSQL_PREFIX."barres_laterales_contenu where id=".$id);
			if($var!==false){
				echo "<div class='barres_laterales_droite_content'><div class='barres_laterales_droite_titre'>".$var->nom."</div>";
				switch($var->type){
					case 1:
						load_module($var->module);
						break;
					case 2:
						echo $var->texte;
						break;
					case 3:
						eval($var->texte);
						break;
				}
				echo "</div>";
			}
		}
	}
	?>
</div>
<? } ?>